package com.example;

import com.example.properties.AppConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ImportResource;

@SpringBootApplication
@EnableConfigurationProperties(AppConfig.class)
@ImportResource("classpath:applicationContext.xml")
public class DemoApplication {


	public static void main(String[] args) {
		 SpringApplication.run(DemoApplication.class, args);
	}
}
